package com.lyk.coursearrange.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDate;
import java.util.List;
@TableName("tb_PaymentResult")
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder

public class PaymentResult extends Model<PaymentResult> {
    private static final long serialVersionUID = 1L;
    @TableId(value = "PaymentResult_id", type = IdType.AUTO)
    private Long PaymentResultId;
    /***
     *是否付款的标志
     */
    @TableField("diagnosticFeePaid")
    private boolean diagnosticFeePaid;
    /***
     *全款
     */
    @TableField("totalAmount")
    private double totalAmount;
    /***
     *信息
     */
    @TableField("message")
    private String message;
    /***
     *支付全款信息
     */
    @TableField("paymentDate")
    private LocalDate paymentDate;
    /***
     *分期的总数
     */
    @TableField("installmentNumber")
    private int installmentNumber;
    /***
     *是否分期
     */
    @TableField("installments")
    private List<Installment> installments;


}
